package cn.kgc.javaweb.entity;


import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;

@Data
public class User {

  private Long id;
  private String username;
  private String password;
  private String sex;
  @JSONField(format = "yyyy-MM-dd")  //  设置日期转换成json时的格式  2023-10-11
  private Date birth;
  private Long roleId;

}
